package com.wushi.emeeting.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;

import com.wushi.emeeting.service.MeetingSer;;

@Controller
@RequestMapping("/meeting")
public class MeetingContr {
	
	@Autowired
	private MeetingSer meetingService;
	
	@RequestMapping("/list")
	public String listAllMeeting(Model model){
		model.addAttribute("meetings",meetingService.getAllMeeting());
		return "meeting/list";
		
	}


}
